Skip to content

.codespellrc: document each skip pattern and whitelisted word#7463

Merged
pingsutw merged 1 commit into
flyteorg:masterfrom
yarikoptic:enh-codespell
Jun 1, 2026
Merged

.codespellrc: document each skip pattern and whitelisted word#7463
pingsutw merged 1 commit into
flyteorg:masterfrom
yarikoptic:enh-codespell

Conversation

@yarikoptic

Copy link
Copy Markdown
Contributor

Why are the changes needed?

.codespellrc's ignore-words-list had grown to 9 short, opaque entries
(astroid,bootup,decorder,fo,lightyear,nd,notin,ser,te). Readers and
reviewers cannot tell at a glance why each is whitelisted, which makes it
hard to audit additions or remove dead entries over time.

What changes were proposed in this pull request?

Switch ignore-words-list to the multi-line config-file form so each
entry can be preceded by a one-line rationale (Go variable abbreviation,
library name, test-fixture string, etc.). Same pattern as
restic/restic#21807.
Also annotate the skip patterns inline.

No behavior change: same words skipped/whitelisted, just documented.

How was this patch tested?

uvx codespell passes with zero errors after the reformat. Each entry
was also verified to be still needed (removing any one of them causes
codespell to flag a real occurrence in the tree).

Labels

  • changed

Check all the applicable boxes

  • I updated the documentation accordingly.
  • All new and existing tests passed.
  • All commits are signed-off.

feel welcome to just close since I am not sure if worth it and not sure what is difference between main and master

@github-actions github-actions Bot added the flyte label May 30, 2026
Switch ignore-words-list from a single comma-separated line to the
multi-line config-file form so each entry can be preceded by a one-line
rationale (Go variable abbreviation, library name, test-fixture string,
truncated CHANGELOG title, etc.). This makes future reviewers able to
sanity-check additions without grepping the codebase for the term.

Also add an explanatory comment block above `skip` documenting why each
pattern is skipped.

No behavior change: `codespell` still passes with zero errors.

Signed-off-by: Yaroslav Halchenko <yaroslav.o.halchenko@dartmouth.edu>

Co-Authored-By: Claude Code 2.1.157 / Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Signed-off-by: Yaroslav Halchenko <debian@onerussian.com>
@pingsutw

pingsutw commented Jun 1, 2026

Copy link
Copy Markdown
Member

@yarikoptic thank you

@pingsutw pingsutw merged commit b7fbf17 into flyteorg:master Jun 1, 2026
48 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants